﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Events
{
    public partial class gdoc_check_ring : System.Web.UI.Page
    {
        public int ring = 0;
        protected void Page_Load(object sender, EventArgs e)
        {

            int event_id = int.Parse(Request.QueryString["event_id"]);
            var get_ring = new TblEventCrossWordController().FetchAll().Where(x => x.EventId == event_id);
            if (get_ring.ToList().Count != 0)
                ring = (int)get_ring.Single().Ring;
        }
    }
}